import request from '@/utils/request'

// 首页信息列表
export function listInfo(query) {
    return request({
        url: '/system/questions/listCount',
        method: 'get',
        params: query
    })
}

//可用科目下拉列表 
export function canSubjects(query) {
    return request({
        url: '/system/subject/availableList',
        method: 'get',
        params: query
    })
}

//模块下拉列表 
export function moduleList(query) {
    return request({
        url: '/system/module/availableList',
        method: 'get',
        params: query
    })
}

// 知识点下拉  
export function outlineinfo(query) {
    return request({
        url: '/system/info/availableList',
        method: 'get',
        params: query
    })
}

// 筛选题型下拉
export function topicType(query) {
    return request({
        url: '/system/type/availableList',
        method: 'get',
        params: query
    })
}

// 查询科目信息详细
export function getInfo(id) {
    return request({
        url: '/system/examtype/' + id,
        method: 'get'
    })
}